package io.geekidea.boot.test.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.geekidea.boot.test.entity.InvoiceRecord;
import io.geekidea.boot.test.query.InvoiceRecordQuery;
import io.geekidea.boot.test.vo.InvoiceRecordVo;
import io.geekidea.boot.test.query.AppInvoiceRecordQuery;
import io.geekidea.boot.test.vo.AppInvoiceRecordVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 发票申请记录 Mapper 接口
 *
 * @author geekidea
 * @since 2025-03-26
 */
@Mapper
public interface InvoiceRecordMapper extends BaseMapper<InvoiceRecord> {

    /**
     * 发票申请记录详情
     *
     * @param id
     * @return
     */
    InvoiceRecordVo getInvoiceRecordById(Long id);

    /**
     * 发票申请记录分页列表
     *
     * @param query
     * @return
     */
    List<InvoiceRecordVo> getInvoiceRecordPage(InvoiceRecordQuery query);

    /**
     * App发票申请记录详情
     *
     * @param id
     * @return
     */
    AppInvoiceRecordVo getAppInvoiceRecordById(Long id);

    /**
     * App发票申请记录分页列表
     *
     * @param query
     * @return
     */
    List<AppInvoiceRecordVo> getAppInvoiceRecordPage(AppInvoiceRecordQuery query);

}
